<?php
ini_set ( 'display_errors', 1 );
if (false !== strpos ( PHP_OS, 'WIN' )) {
	define ( 'SLASH', '\\' );
} else {
	define ( 'SLASH', '/' );
}
define ( 'ROOT', dirname ( __FILE__ ) . SLASH );

require 'config/system.cfg.php';
require 'lib/AutoLoad.cls.php';
AutoLoad::registerAutoload ();
$actionServer = new ActionServer ( );
$actionServer->process ();
//index.php?do=index/index

// -------------------- Debug --------------------------//
function debug($var, $method = true, $exit = false) {
	echo ' <pre>';
	$method ? print_r ( $var ) : var_dump ( $var );
	echo '</pre> ';
	if ($exit) {
		exit ();
	}
}

?>
